var xmlhttp

function loadContent(montant,sensConversion)
{

    xmlhttp=GetXmlHttpObject();

    if (xmlhttp==null)
    {
        alert ("Your browser does not support Ajax HTTP");
        return;
    }

    var url="conversionFrame.jsp";
    url=url+"?montant="+montant+"&sensConvertion="+sensConversion;

    xmlhttp.onreadystatechange=getOutput;
    xmlhttp.open("GET",url,true);
    xmlhttp.send(null);
}

function getOutput()
{
    if (xmlhttp.readyState==4)
    {
        //document.getElementById("conversion").style.visibility = "visible";
        document.getElementById("conversion").innerHTML=xmlhttp.responseText;
        alert(xmlhttp.responseText);
    }
}

function GetXmlHttpObject()
{
    if (window.XMLHttpRequest)
    {
        return new XMLHttpRequest();
    }
    if (window.ActiveXObject)
    {
        return new ActiveXObject("Microsoft.XMLHTTP");
    }
    return null;
}